﻿using System.Collections.Generic;
using eCommerce.db.DALRespository;
using eCommerce.db.DataRespository;

namespace eCommerce.db.BORespository
{
    public class ImageBo
    {
        public static List<ImageEntity> GetByProductId(int productId)
        {
            return ImageDal.GetByProductId(productId);
        }

        public static ImageEntity GetById(int id)
        {
            return ImageDal.GetById(id);
        }

        public static void Create(ImageEntity o)
        {
            ImageDal.Create(o);            
        }

        public static void Delete(int id)
        {
            ImageDal.Delete(id);
        }

        public static int GetImageCount(int productId)
        {
            return ImageDal.GetImageCount(productId);
        }
    }
}
